package zhaoq_hero.superapp;

import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import zhaoq_hero.superapp.interfaces.MyCallBack1;

/**
 * ProjectName : zhaoq_hero.superapp
 * Created by : zhaoQiang
 * Email : zhaoq_hero163.com
 * On 2015/11/1 // 20:03
 */
public class MyWebViewClient extends WebViewClient {

    private MyCallBack1 callBack1;

    public MyWebViewClient(MyCallBack1 callBack1) {
        this.callBack1 = callBack1;
    }

    @Override
    public void onPageFinished(WebView view, String url) {
        callBack1.sendUrl(url);

        Log.d("debug11", "onPageFinished" + url);

        super.onPageFinished(view, url);
    }

}
